var mongoose = require('mongoose');

var studentSchema = new mongoose.Schema({
    sid: String,
    sname: String,
    sex: String,
    grade: String,
    password: String,
    changePassword: Boolean,
    courses: [String]
})

var Student = mongoose.model('Student', studentSchema);

module.exports = Student